package com.manage.mapper;

import com.manage.dto.OrderAndGoodsDto;
import com.manage.pojo.FlowerGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FlowerGoodsMapper extends BaseMapper<FlowerGoods> {

    boolean updateByStatus(@Param("goodsId") String goodsId,@Param("goodsStatus") Integer goodsStatus);

    List<String> select_user_goodsId(@Param("userId") String userId);

    List<OrderAndGoodsDto> order_goods(@Param("userId") String userId);
}
